<template>
    <div>
        <h1>111111111111</h1>
        <h2>{{this.$store.state}}</h2>
        <div @click="me">点击我</div>
    </div>
</template>
<script>
    export default {
        data () {
            return {

                // msg: "我是page2组件",
            }
        },
        methods:{
            me:function(){ 

                this.$store.commit('setTotal');
                console.log(6,this.$store.state)
                console.log(7,this.$store.getters.getname)

            }
        }

    }
</script>